using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmMpClassMapping")]
    public class MpClassMapping
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "MapId", ResourceType = typeof(Resources.MpClassMappingResource))]
        public int MapId { get; set; }

		[ForeignKey("OldClass")]
		[DataMember, Display(Name = "OldClassId", ResourceType = typeof(Resources.MpClassMappingResource))]
        public Nullable<int> OldClassId { get; set; }

		[ForeignKey("PosType")]
		[DataMember, Display(Name = "PosTypeId", ResourceType = typeof(Resources.MpClassMappingResource))]
        public Nullable<int> PosTypeId { get; set; }

		[ForeignKey("NewClass")]
		[DataMember, Display(Name = "NewClassId", ResourceType = typeof(Resources.MpClassMappingResource))]
        public Nullable<int> NewClassId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MpClassMappingResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MpClassMappingResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MpClassMappingResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MpClassMappingResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MpClassMappingResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MpClassMappingResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual MpClass OldClass { get; set; }

		public virtual MasPositionType PosType { get; set; }

		public virtual HRM.MpClass NewClass { get; set; }

    }
}